package com.example.project1.presenter.imple;

import java.util.List;

import android.util.Log;

import com.example.project1.entity.User;
import com.example.project1.model.impl.YongHuDataModelImpl;
import com.example.project1.presenter.YongHuDataPresenter;
import com.example.project1.utils.YongHuDataCallback;
import com.example.project1.view.IYongHu_View;

public class YongHuDataPresenterImpl implements YongHuDataPresenter{

	private YongHuDataModelImpl model;
	private IYongHu_View view;
	
	public YongHuDataPresenterImpl(IYongHu_View view){
		this.view=view;
		model=new YongHuDataModelImpl();
	}
	
	@Override
	public void loadPYongHuData() {
		model.getMYongHuData(new YongHuDataCallback() {
			
			@Override
			public void getDataCallBack(List<User> data) {
				
				view.showYongHuView(data);
			}
		});
	}

}
